package com.jiyun.play.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@PropertySource("classpath:aliyun.properties") //加载指定配置文件(也可以加载yaml，如果是默认配置文件，则可以不加载)
public class AliyunOSSProp {

private String bucketName;
private String accessKey;
private String accessKeySecret;
private String endpoint;
private String filePath; //存储的路径
@Override
public String toString() {
return "AliyunOSSProp{" +
"bucketName='" + bucketName + '\'' +
", accessKey='" + accessKey + '\'' +
", accessKeySecret='" + accessKeySecret + '\'' +
", endpoint='" + endpoint + '\'' +
", filePath='" + filePath + '\'' +
'}';
}
public String getBucketName() {

return bucketName;
}

    public AliyunOSSProp() {
    }

    public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
public String getAccessKey() {
return accessKey;
}
public void setAccessKey(String accessKey) {
this.accessKey = accessKey;
}
public String getAccessKeySecret() {
return accessKeySecret;
}
public void setAccessKeySecret(String accessKeySecret) {
this.accessKeySecret = accessKeySecret;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
}



